package com.example.demo.Controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HellloController {
    @GetMapping("/hello")
    public  String hello(){
             return "hello springboot";
    }

    @PostMapping("/hello/post")
    public String helloPost(String name){
        return "Hello World! Post" +name;
    }
}
